﻿using System;
using Medianamik.Core;
using Medianamik.UI.Web.MVP.View;

namespace Medianamik.UI.Web.Shop
{
    public interface IAttributeValueListView : IModuleViewWithGrid { }

    public partial class ShopAttributeValueList : ModuleViewWithGrid<IAttributeValueListView>, IAttributeValueListView
    {
        public override Guid? ParentNodeId
        {
            get
            {
                return PageIds.FaceValueList;
            }
        }

        public override System.Web.UI.WebControls.HyperLink AddButton
        {
            get
            {
                return lnkAddNode;
            }
        }

        public override Guid BaseTypeId
        {
            get
            {
                return Request.QueryString.GetValue<Guid?>(DefaultParamNames.TypeID) ?? Guid.Empty;
            }
        }

        public override string ListingPageUrl
        {
            get { return Pages.AttributeTypeValueList; }
        }

        public override IMedianamikGrid Grid
        {
            get { return (IMedianamikGrid)AttributeTypeValueGrid; }
        }
    }
}